
import javax.sound.sampled.Line;
import java.util.Locale;
import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {
              String s=in.nextLine();
              if(Character.isLowerCase(s.charAt(0))){
                  char c=(char)(s.charAt(0)-32);
                  System.out.println(c);
              }else{
                  char c=(char) (s.charAt(0)+32);
                  System.out.println(c);

              }
        }


        }
    }


